package 数据结构.哈希表数据结构.Test01;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class HashMapTest01 {
    public static void main(String[] args) {
        Map<Integer,String> map = new HashMap<>();
        map.put(1,"a");
        map.put(22,"b");
        map.put(333,"c");
        map.put(55,"d");
        map.put(666,"e");
        map.put(999,"f");
        map.put(999,"f");
        System.out.println(map.size());
        Set<Map.Entry<Integer,String>> set = map.entrySet();
        for(Map.Entry<Integer,String> key : set){
            System.out.println(key);
        }
    }
}
